<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>process loading</title>
    <script type="text/javascript" src="./js/require.js"></script>
    <script type="text/javascript" src="./js/main.js"></script>
</head>
<body>
<button class="default">default</button>
<button class="warning">warning</button>
<button class="success">success</button>

<script type="text/javascript">
    require(['processLoading'], function (process){
        $('button').click(function(){
            var opt = $(this).attr('class');
            process.putMsg(opt, opt, 10000);
        });
    });
</script>
</body>
</html>